fourier series derivation